<?php get_header(); ?>
<?php get_sidebar(); ?>

   <div id="content">
      <!-- This sets the $curauth variable -->
<?php
if(isset($_GET['author_name'])) :
$curauth = get_userdatabylogin($author_name);
$authid = $author_name;
else :
$curauth = get_userdata(intval($author));
$authid = intval($author);
endif;
?>

<h2 class="pagetitle">about: <?php echo $curauth->first_name; ?><?php echo $curauth->last_name; ?> (<?php echo $curauth->nickname; ?>)</h2>
<dl>
<?php if(function_exists(author_image_tag)){ ?>
<div id="profilebox" style="min-height: <?php author_image_dimensions(author_image_path($authid, false, 'absolute'), 'height', true); ?>px;">

<?php author_image_tag($authid, 'align=right'); echo('</div>');} ?>
<dt>Website</dt>
<dd><a href="<?php echo $curauth->user_url; ?>"><?php echo $curauth->user_url; ?></a></dd>
<dt>Email</dt>
<dd><a href="mailto:<?php echo $curauth->user_email; ?>"><?php echo $curauth->user_email; ?></a></dd>
<dt>Profile</dt>
<dd><?php echo $curauth->user_description; ?></dd>

</dl>

<h2 class="pagetitle">posts by <?php echo $curauth->nickname; ?></h2>

<table width="94" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
  <tr>
    <td height="20" colspan="3" bgcolor="#FFFFFF"><div align="center" class="posttimetag">time</div></td>
    </tr>
  <tr>
    <td width="30" height="20" bgcolor="#FFFFFF" class="posttimetag"><div align="center">&#26376;</div></td>
    <td width="30" height="20" bgcolor="#FFFFFF" class="posttimetag"><div align="center">&#26085;</div></td>
    <td width="30" height="20" bgcolor="#FFFFFF" class="posttimetag"><div align="center">&#24180;</div></td>
    </tr>
</table>

<!-- The Loop -->
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
 
<table width="450" height="30" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
  <tr>
    <td width="30" bgcolor="#FFFFFF"><div align="center">
      <?php the_time('n'); ?>
    </div></td>
    <td width="30" bgcolor="#FFFFFF"><div align="center">
      <?php the_time('d'); ?>
    </div></td>
    <td width="30" bgcolor="#FFFFFF"><div align="center">
      <?php the_time('y'); ?>
    </div></td>
    <td width="225" bgcolor="#FFFFFF"><a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_permalink(); ?>" rel="bookmark">
   <div style="padding:5px">   <?php the_title(); ?></div></a></td>
    <td bgcolor="#CCCCCC"><div style="padding:5px"><?php the_category(' |');?></div></td>
  </tr>
</table>

  <?php endwhile; else: ?>
     <p><?php _e('No posts by this author.'); ?></p>

	<?php endif; ?>
<!-- End Loop -->

<?php get_footer(); ?>
</div>

 